import request from '@/hook/interceptors'

// 获取user列表
export const goodsList = (data) => {
    return request({
        url: import.meta.env.VITE_USER_PATH + "/goods",
        method: "get",
        data
    });
};

export const goodsDesc = (goodsID) => {
    return request({
        url: import.meta.env.VITE_USER_PATH + `/goods/${goodsID}`,
        method: "get",
    });
};

export const goodsRandom = (payload) => {
    return request({
        url: import.meta.env.VITE_USER_PATH + `/goods/random`,
        method: "post",
        data: payload
    });
};

export const goodsCollect = (payload) => {
    return request({
        url: import.meta.env.VITE_USER_PATH + `/user/collect`,
        method: "post",
        data: payload
    });
};

export const goodsCollected = (payload) => {
    return request({
        url: import.meta.env.VITE_USER_PATH + `/user/collected`,
        method: "post",
        data: payload
    });
};